<extend name="Public/common"/>
<block name="othercss">
<script>
    fwshop_root = "__APP__";
    var url_go_index = "{:U('/')}";//首页
    var url_forget_reset_ajax = "{:U('Register/forget_reset_ajax')}?"; //重置密码-找回密码确定地址
    var url_login = "{:U('Register/login')}?"; //用户登陆页面地址
    var url_login_submit = "{:U('Register/login_submit')}";//用户登陆请求地址
	var url_verify_code = "{:urlrotue('Register/verify')}"
</script>
<script src="{$theme_path}/js/basic.js"></script>
<script src="{$theme_path}/js/login.js?20190401_4"></script>
</block>
<block name="header">
<div class="header">
    <div class="clearfix box">
        <!--<a class="save">保存</a>-->
        <a class="return" href="javascript:history.back(-1)"><i class="return-icon"></i></a>
        <h2>登录</h2>
    </div>
</div>
</block>
<block name="body">
<div class="container pt50">
    <div class="wjmm">
        <dl>
		 
            <dd class="clearfix">
                <img src="{$theme_path}/images/login-icon1.png" width="25"/>
                <input type="text"  name="username" id="username" value="{$remember_name}" class="text3" placeholder=""/>
            </dd>
            <dd class="clearfix">
                <img src="{$theme_path}/images/login-icon2.png" width="25"/>
                <input  type="password" name="password" id="password" class="text3" placeholder=""/>
            </dd>
                <dd class="clearfix">
                <img src="{$theme_path}/images/login-icon2a.png" width="25"/>
                <img name="validate" id="validate" style="cursor:pointer; float:right;" alt="点击更换"  onclick="validate.src += '?' + Math.random();" src=""><input  type="number" name="code" id="code" class="text3" style="width:30%" placeholder=""/>
            </dd>
        </dl>
        <div class="wjmm-sub">
           
                <input type="button"  id="btn_login" class="sub2" value="登录"/>
          
        </div>
		<div class="msg_error" style="color:#F00"></div>
    </div>
	<input type="hidden" name="remember" id="remember" value="0">
	   <input type="hidden" id="login_url" value="{$login_url}" />
    <div class="clearfix reg_btn_sum">
        <a class="wjmm-btn"href="{:urlrotue('Register/forget')}">[忘记密码]</a>
        <a class="reg-btn" href="{:urlrotue('Register/index')}">还没账号<span
                style="color:#dd2727;">立即注册</span></a>
    </div>
    <div class="dsf">
        <div class="title">第三方登录</div>
        <div class="qiu">
            <a href="#"><img src="{$theme_path}/images/login-icon4.png" width="40"/> </a>
            <a href="#"><img src="{$theme_path}/images/login-icon5.png" width="40"/> </a>
        </div>
    </div>
</div>









<!--end  top-->
</block>


<block name="footer"></block>

<block name="otherjs"> 
<script type="text/javascript">
    $(function(){
        $('.left').click(function(){
            $(this).children('i').toggleClass('on');
			var remember = $('#remember').val();
			if(remember==1){
			$('#remember').val('0');
			}else{
			$('#remember').val('1');
			}
        })
    });

        //首次加载
        document.getElementById("validate").src = url_verify_code+"?time=" + (new Date()).getTime();
</script>
</block>

